page {
  height: 100%;
  overflow: hidden;
  background-color: #f7f7f8;
}

.viewport {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.categoriestap {
  display: flex;
  flex-direction: row;
  margin-top: 20rpx;
  margin-bottom: 10rpx;
}

.icon-search {
  &::before {
    margin-right: 10rpx;
  }
}

/* 分类 */
.categories {
  flex: 1;
  min-height: 400rpx;
  display: flex;
}

/* 一级分类 */
.primary {
  margin: 0 30rpx 0rpx;
  background-color: #100202;
}

.today {
  font-size: 26rpx;
  padding-left: 20rpx;
  padding-right: 10rpx;
  color: #100202;
  font-weight: bold;
}

.rightime {
  font-size: 26rpx;
  color: #100202;
  flex: 1;
  text-align: right;
  padding-right: 20rpx;
}

.item {
  font-size: 26rpx;
  margin-left: 15rpx;
  margin-right: 15rpx;
  padding-left: 10rpx;
  padding-right: 10rpx;
  color: #100202;
  border-radius: 10%;
  background-color: #e5e2e2;
}

.active {
  font-size: 26rpx;
  margin-left: 15rpx;
  margin-right: 15rpx;
  padding-left: 10rpx;
  padding-right: 10rpx;
  color: white;
  border-radius: 10%;
  background-color: #27ba9b;
}

/* 二级分类 */
.secondary {
  display: flex;
  flex-direction: column;
}

.cart-swipe {
  margin: 20rpx 20rpx 0rpx 20rpx;
  border-radius: 10rpx;
  background-color: #fff;
}

// 购物车商品
.goods {
  display: flex;
  padding: 20rpx 40rpx 20rpx 40rpx;
  position: relative;

  .navigator {
    display: flex;
  }

  .checkbox {
    position: absolute;
    top: 0;
    left: 0;

    display: flex;
    align-items: center;
    justify-content: center;
    width: 80rpx;
    height: 100%;

    &::before {
      content: '\e6cd';
      font-family: 'erabbit' !important;
      font-size: 40rpx;
      color: #444;
    }

    &.checked::before {
      content: '\e6cc';
      color: #27ba9b;
    }
  }

  .picture {
    width: 170rpx;
    height: 170rpx;
  }

  .meta {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin-left: 20rpx;
  }

  .name {
    height: 72rpx;
    font-size: 26rpx;
    color: #444;
  }

  .attrsText {
    line-height: 1.8;
    padding: 0 15rpx;
    font-size: 24rpx;
    align-self: flex-start;
    border-radius: 4rpx;
    color: #888;
    background-color: #f7f7f8;
  }

  .price {
    line-height: 1;
    font-size: 26rpx;
    color: #444;
    margin-bottom: 2rpx;
    color: #cf4444;

    &::before {
      content: '￥';
      font-size: 80%;
    }
  }

  // 商品数量
  .count {
    position: absolute;
    bottom: 20rpx;
    right: 5rpx;

    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 220rpx;
    height: 48rpx;

    .text {
      height: 100%;
      padding: 0 20rpx;
      font-size: 32rpx;
      color: #444;
    }

    .input {
      height: 100%;
      text-align: center;
      border-radius: 4rpx;
      font-size: 24rpx;
      color: #444;
      background-color: #f6f6f6;
    }
  }
}

.login-blank {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  height: 60vh;

  .image {
    width: 400rpx;
    height: 281rpx;
  }

  .text {
    color: #444;
    font-size: 26rpx;
    margin: 20rpx 0;
  }

  .button {
    width: 240rpx !important;
    height: 60rpx;
    line-height: 60rpx;
    margin-top: 20rpx;
    font-size: 26rpx;
    border-radius: 60rpx;
    color: #fff;
    background-color: #27ba9b;
  }
}

.float-button {
  position: fixed;
  /* 绝对定位 */
  bottom: 20%;
  /* 距离底部20像素 */
  left: 20rpx;
  /* 距离右侧20像素 */
  width: 100rpx;
  /* 按钮宽度 */
  height: 100rpx;
  /* 按钮高度 */
  background-color: #f6fcfb;
  /* 背景颜色 */
  color: white;
  /* 字体颜色 */
  text-align: center;
  /* 文字居中 */
  line-height: 50px;
  /* 行高与高度相同，使得按钮内的文字垂直居中 */
  border-radius: 25px;
  /* 圆角边框 */
  z-index: 999;
  /* 确保按钮在最上层 */
  .location-image {
    width: 90rpx;
    height: 90rpx;
  }
}

// 吸底工具栏
.toolbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;

  height: 100rpx;
  padding: 0 20rpx;
  display: flex;
  align-items: center;
  border-top: 1rpx solid #ededed;
  border-bottom: 1rpx solid #ededed;
  background-color: #fff;
  box-sizing: content-box;

  .all {
    margin-left: 25rpx;
    font-size: 14px;
    color: #444;
    display: flex;
    align-items: center;
  }

  .all::before {
    font-family: 'erabbit' !important;
    content: '\e6cd';
    font-size: 40rpx;
    margin-right: 8rpx;
  }

  .checked::before {
    content: '\e6cc';
    color: #27ba9b;
  }

  .text {
    margin-right: 8rpx;
    margin-left: 32rpx;
    color: #444;
    font-size: 14px;
  }

  .amount {
    font-size: 20px;
    color: #cf4444;

    .decimal {
      font-size: 12px;
    }

    &::before {
      content: '￥';
      font-size: 12px;
    }
  }

  .button-grounp {
    margin-left: auto;
    display: flex;
    justify-content: space-between;
    text-align: center;
    line-height: 72rpx;
    font-size: 13px;
    color: #fff;

    .button {
      width: 240rpx;
      margin: 0 10rpx;
      border-radius: 72rpx;
    }

    .payment-button {
      background-color: #27ba9b;

      &.disabled {
        opacity: 0.6;
      }
    }
  }
}

.popup {
  height: 300rpx;
}

/* 二级分类 */
.popup-scroll {
  display: flex;
  flex-direction: column;
  max-height: 420rpx;
  margin-bottom: 50rpx;

  .goods {
    margin-bottom: 50rpx;
  }
}
